package com.x.controller;

import com.x.pojo.Student;
import com.x.service.StudentService;

import java.util.List;

/**
 * ClassName: StudentController
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.09.02 22:13
 */
public class StudentController {
    private StudentService studentService;

    public void setStudentService(StudentService studentService) {
        this.studentService = studentService;
    }

    public void findAll(){
        List<Student> studentList = studentService.findAll();
        System.out.println("Finally, Controller层 find all students: "+ studentList);
    }
}
